/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.creational.singleton;

import com.creational.singleton.Singleton;

/**
 *
 * @author jmg
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Singleton singleton = Singleton.getInstance();
        singleton.setState(10);
        
        Singleton singleton1 = Singleton.getInstance();
        System.out.println(singleton1.getState());
         
        
       
    }
}
